package com.qn.domian;


import java.security.Timestamp;

public class Comment {

  private int cId; //评论ID
  private int pId; //评论作品ID
  private int uId; //评论用户ID
  private String cContents; //评论内容
  private Timestamp cTime; //评论时间
  private int cClickCount; //评论点赞数

  public Comment() {
  }

  public Comment(int cId, int pId, int uId, String cContents, Timestamp cTime, int cClickCount) {
    this.cId = cId;
    this.pId = pId;
    this.uId = uId;
    this.cContents = cContents;
    this.cTime = cTime;
    this.cClickCount = cClickCount;
  }

  public int getcId() {
    return cId;
  }

  public void setcId(int cId) {
    this.cId = cId;
  }

  public int getpId() {
    return pId;
  }

  public void setpId(int pId) {
    this.pId = pId;
  }

  public int getuId() {
    return uId;
  }

  public void setuId(int uId) {
    this.uId = uId;
  }

  public String getcContents() {
    return cContents;
  }

  public void setcContents(String cContents) {
    this.cContents = cContents;
  }

  public Timestamp getcTime() {
    return cTime;
  }

  public void setcTime(Timestamp cTime) {
    this.cTime = cTime;
  }

  public int getcClickCount() {
    return cClickCount;
  }

  public void setcClickCount(int cClickCount) {
    this.cClickCount = cClickCount;
  }

  @Override
  public String toString() {
    return "Comment{" +
            "cId=" + cId +
            ", pId=" + pId +
            ", uId=" + uId +
            ", cContents='" + cContents + '\'' +
            ", cTime=" + cTime +
            ", cClickCount=" + cClickCount +
            '}';
  }
}
